package com.boundless.helmet.app;

import android.app.Application;
import android.os.SystemClock;
import android.util.Log;

import com.boundless.helmet.utils.WriteUtil;

public class MyApplication extends Application {


    public static MyApplication instance;


    public static MyApplication getInstance() {


        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        instance = this;


        new Thread(() -> {

            try {

                SystemClock.sleep(1000 * 20);
                Log.e("Application", "application 初始化，  写日志信息 ");
                WriteUtil.startUp();
            } catch (Exception e) {
                e.printStackTrace();
            }

        }).start();


    }
}
